Opened 13 years ago

Closed 13 years ago

#1774 closed enhancement (fixed)

Confusing error message from ST_ChangeEdgeGeom (lwpoly_from_lwlines: shell must have at least 4 points)

Reported by: strk Owned by: strk
Priority: low Milestone: PostGIS 2.0.1
Component: topology Version: 2.0.x
Keywords: Cc:

Description

The error is confusing as I'm changing an edge geometry so don't expect LWPOLY to have anything to do with it.

I guess it's about the isomorphic movement detection.

Change History (5)

comment:1 by strk, 13 years ago

Component: postgistopology
Owner: changed from pramsey to strk

Ok the error is raised when passing a single-point edge as a replacement for an existing edge. It's surely non-isomorphic (even if the edge was closed, a face would disappear), but could be reported in a nicer way :)

comment:2 by strk, 13 years ago

Same error message with an EMPTY linestring

comment:3 by strk, 13 years ago

Priority: mediumlow
Type: defectenhancement

comment:4 by strk, 13 years ago

Summary: ST_ChangeEdgeGeom: ERROR: lwpoly_from_lwlines: shell must have at least 4 pointsConfusing error message from ST_ChangeEdgeGeom (lwpoly_from_lwlines: shell must have at least 4 points)

comment:5 by strk, 13 years ago

Resolution: fixed
Status: newclosed

r9897 and r9898 in 2.0 branch, r9899 in trunk

Note: See TracTickets for help on using tickets.